// JavaScript Document
/*     ---------二维码------------     */
$(document).ready(function(){
		
		var week = ['星期日',"星期一","星期二",'星期三','星球四','星期五','星期六'];
		 var d, s = "";           // 声明变量。
   		d = new Date(); 
		s += d.getFullYear()+"年"; 
   		s += (d.getMonth() + 1) + "月"; 
		s += d.getDate() + "日";            // 获取月份。  
   		  var w = d.getDay();
		$(".h_right span").text(s+" "+week[w]);
		
/* -------------在线客服&二维码------------------------*/

	$('#online_qq_layer').hover(function(){
		$(this).animate({right:'0'});
	},function(){
		$(this).animate({right:'-177px'});
	});
		
	});
	
/*---------------login type--------------*/
	function setUserName1(){
			var username=document.getElementById('username');
			var password=document.getElementById('password');
			if(username.value=='用户名'){
				username.value='';
			
			}	
		}
		function setUserName2(){
			var username=document.getElementById('username');
			var password=document.getElementById('password');
			if(username.value==''){
				username.value='用户名';
			
			}
			
		
		}
		function setPassword1(){
			var password=document.getElementById('password');
			if(password.value=='密码'){
				password.type='password';
				password.value='';
			}
			
		
		}
		function setPassword2(){

			var password=document.getElementById('password');
			if(password.value==''){
				password.type='text';
				password.value='密码';
			
			}				
}




